@rem remove build and dist
rmdir /s/q build
rmdir /s/q dist

@rem build
@call python setup.py build
@call python setup.py install
@call python setup.py py2exe

@rem copy exts and vote configuration
xcopy /s/i profile dist\profile
@rem xcopy /s/i tessdata dist\tessdata
copy vote.cfg dist
@rem copy tesseract.exe dist



